<?

IF ($_USER_DROIT==-1){
SWITCH ($p){
            //Article
			CASE 'a_ajout': REQUIRE("site/article/art_crea.php");BREAK;
            CASE 'a_mod':   REQUIRE("site/article/art_mod.php"); BREAK;
            CASE 'a_supr':  REQUIRE("site/article/art_supr.php"); BREAK;
            CASE 'a_liste': REQUIRE("site/article/article_liste.php");BREAK;
            CASE 'a_liste_del': REQUIRE("site/article/article_liste_del.php");BREAK;


            //Client
            CASE 'c_ajout': REQUIRE("site/client/cli_crea.php");BREAK;
            CASE 'c_mod':   REQUIRE("site/client/cli_mod.php"); BREAK;
            CASE 'c_supr':  REQUIRE("site/client/cli_supr.php"); BREAK;
            CASE 'c_liste': REQUIRE("site/client/cli_liste.php");BREAK;
            CASE 'list_connect': REQUIRE("site/client/cli_connecter_liste.php");BREAK;
             CASE 'user_profil': REQUIRE("site/client/cli_mod_profil.php");BREAK;



            
            //Facture
            CASE 'f_ajout': REQUIRE("site/facture/fac_crea_tmp.php");BREAK;
            CASE 'f_supr':  REQUIRE("site/facture/facture_supr.php"); BREAK;
            CASE 'f_liste':  REQUIRE("site/facture/facture_liste.php"); BREAK;
            CASE 'f_view':  REQUIRE("site/facture/facture_view.php"); BREAK;
            
            //Commande
            CASE 'com_ajout': REQUIRE("site/commande/com_crea.php");BREAK;


            
          //  CASE 'com_ajout2': REQUIRE("site/commande/com_crea.php");BREAK;
            CASE 'com_supr':  REQUIRE("site/commande/com_supr.php"); BREAK;
            CASE 'com_liste':  REQUIRE("site/commande/com_liste.php"); BREAK;
             CASE 'com_liste_t':  REQUIRE("site/commande/com_liste_t.php"); BREAK;
            CASE 'com_view':  REQUIRE("site/commande/com_view.php"); BREAK;
               CASE 'com_ajout_1': REQUIRE("site/commande/com_ajout_1.php");BREAK;
                     CASE 'com_ajout_2': REQUIRE("site/commande/com_ajout_2.php");BREAK;
               
               CASE 'com_validation': REQUIRE("site/commande/com_crea_valid.php");BREAK;
             
            CASE 'opt_gen':  REQUIRE("site/divers/general.php"); BREAK;


            //Pour les impressions
            CASE 'impr_art':  REQUIRE("site/impression/article.php"); BREAK;
            
			DEFAULT:
			
			
			BREAK;	
}

}ELSE{
//Pour les agent uniquements
SWITCH ($p){
        //Article
        CASE 'a_liste': REQUIRE("site/article/article_liste.php");BREAK;

        //Facture
        CASE 'f_liste_a':  REQUIRE("site/facture/facture_liste2.php"); BREAK;


        //Commande
         CASE 'com_ajout': REQUIRE("site/commande/com_crea.php");BREAK;
             CASE 'com_liste':  REQUIRE("site/commande/com_liste.php"); BREAK;
             CASE 'com_liste_t':  REQUIRE("site/commande/com_liste_t.php"); BREAK;
              CASE 'com_view':  REQUIRE("site/commande/com_view.php"); BREAK;
               CASE 'com_ajout_1': REQUIRE("site/commande/com_ajout_1.php");BREAK;
                     CASE 'com_ajout_2': REQUIRE("site/commande/com_ajout_2.php");BREAK;

               CASE 'com_validation': REQUIRE("site/commande/com_crea_valid.php");BREAK;
               
               //Client
             CASE 'user_profil': REQUIRE("site/client/cli_mod_profil.php");BREAK;
               
        DEFAULT:
           //Facture


        BREAK;
}
}
?>
